
class People:
    __name = '小明'

    def say(self):
        # 只能在内部掉用
        self.__name = '大明'
        self.__say()
        print(self.__name)

    def __say(self):
        self.__name = '__大明'
        print('say chinese')

    @classmethod
    def hello(cls):
        print(cls.__name)

    @staticmethod
    def hello_word():
        print('hello world')

    @property
    def hello_1(self):
        return self.__name


p = People()
p.say()
People.hello()
People.hello_word()
print(p.hello_1)
